package com.da.service.impl;


import com.da.productPojo.Product;
import com.da.service.ProductService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * TODO
 *
 * @Author chen
 * @Date 2025/8/6 17:31
 */
@Slf4j
@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProductById(Long productId) {
        Product product = new Product();
        product.setId(productId);
        product.setProductName("测试商品");
        product.setPrice(new BigDecimal(100));
        product.setNum(100);
        log.info("查询到的商品信息为{}", product);
        return product;
    }
}
